import {reactive} from "vue";

export const labBorrowSearchColumns=[]
/**
 * 主页面表格区域
 */
export const labBorrowTableColumns=[
    {
        title: '申请ID',
        dataIndex: 'id',
        key: 'id'
    },
    {
        title: '申请学期',
        dataIndex: 'semesterName',
        key: 'semesterName'
    },
    {
        title: '申请学生',
        dataIndex: 'studentName',
        key: 'studentName'
    },
    {
        title: '申请周次',
        dataIndex: 'week',
        key: 'week'
    },
    {
        title: '申请日期',
        dataIndex: 'weekdayName',
        key: 'weekdayName'
    },
    {
        title: '申请节次',
        dataIndex: 'sectionName',
        key: 'sectionName'
    },
    {
        title: '申请实验室编号',
        dataIndex: 'labNumber',
        key: 'labNumber'
    },
    {
        title: '申请原因',
        dataIndex: 'reason',
        key: 'reason'
    },
    {
        title: '填报日期',
        dataIndex: 'applicationDate',
        key: 'applicationDate',
    },
    {
        title: '状态',
        dataIndex: 'status',
        key: 'status'
    },
    {
        title: '操作',
        dataIndex: 'action',
        key: 'action'
    }
]
/**
 * 新增和编辑模块的数据项
 */
export const modelFormFields =reactive([
    {
        title: '申请周次',
        key: 'week',
        inputType: 'input-number'
    },
    {
        title: '申请时间',
        key: 'weekday',
        inputType: 'select',
        selectList:[]
    },
    {
        title: '申请节次',
        key: 'sectionId',
        inputType: 'select',
        selectList:[]
    },
    {
        title: '实验室类型',
        key: 'labType',
        inputType: 'select',
        selectList:[]
    },
    // {
    //     title: '申请实验室编号',
    //     key: 'labId',
    //     inputType: 'input'
    // },
    {
        title: '申请原因',
        key: 'reason',
        inputType: 'textarea'
    },
])